using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Snake.Client
{
    public class Food
    {
        public const int Size = 50;
        private readonly Random _randomizer;

        public Food()
        {
            _randomizer = new Random();
            ChangePosition();
        }

        public Vector2 Position { get; private set; }

        public void ChangePosition()
        {
            Position = new Vector2
            (
                _randomizer.Next(Screen.Width - Size),
                _randomizer.Next(Screen.Height - Size)
            );
    }
    }
}
